/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 购物车Entity
 */
@Table(name="biz_cart", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="trans_member_id", attrName="transMemberId", label="转发会员Id"),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="trans_activity_id", attrName="transActivityId", label="转发活动Id"),
		@Column(name="activity_id", attrName="activityId", label="活动Id"),
		@Column(name="brand_id", attrName="brandId", label="品牌Id"),
		@Column(name="cate_id", attrName="cateId", label="分类id"),
		@Column(name="goods_id", attrName="goodsId", label="商品Id"),
		@Column(name="goods_spec_id", attrName="goodsSpecId", label="商品规格Id"),
		@Column(name="num", attrName="num", label="数量"),
		@Column(name="remark", attrName="remark", label="备注"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class Cart extends DataEntity<Cart> {
	
	private static final long serialVersionUID = 1L;
	private String transMemberId;		// 转发会员Id
	private String memberId;		// 会员Id
	private String transActivityId;		// 转发Id
	private String activityId;		// 活动Id
	private String brandId;		// 品牌Id
	private String cateId;		// 分类id
	private String goodsId;		// 商品Id
	private String goodsSpecId;		// 商品规格Id
	private Integer num;		// 数量
	private String remark;		// 备注
	
	public Cart() {
		this(null);
	}

	public Cart(String id){
		super(id);
	}

	public String getTransMemberId() {
		return transMemberId;
	}

	public void setTransMemberId(String refMemberId) {
		this.transMemberId = refMemberId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getTransActivityId() {
		return transActivityId;
	}

	public void setTransActivityId(String transActivityId) {
		this.transActivityId = transActivityId;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getCateId() {
		return cateId;
	}

	public void setCateId(String cateId) {
		this.cateId = cateId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsSpecId() {
		return goodsSpecId;
	}

	public void setGoodsSpecId(String goodsSpecId) {
		this.goodsSpecId = goodsSpecId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}